import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import PHPrequest from '@/utils/PHPrequest'

/**
 * 公卫一体化平台工作台统计
 * @param query
 * @returns {*}
 */

export const getWorkbenchStatistics = (query) => {
  return request({
    url: '/integrated/platform/workbench/statistics',
    method: 'get',
    params: query
  });
};

/**
 * 公卫一体化平台工作台统计
 * @param query
 * @returns {*}
 */
export const getEffectTime = () => {
  return PHPrequest({
    url: '/doctor.php/common/home/signingStatistics',
    method: 'get',
  });
};

/**
 * 公卫一体化平台首页统计
 * @param query
 * @returns {*}
 */

export const getHomeStatistics = (query) => {
  return request({
    url: '/integrated/platform/home/statistics',
    method: 'get',
    params: query
  });
};
/**
 * 公卫一体化平台首页统计
 * @param query
 * @returns {*}
 */
export const getIndexStatictics = (query) => {
  return PHPrequest({
    url: '/doctor.php/common/home/index',
    method: 'get',
    params: query
  });
};


/**
 * 公卫一体化平台签约率
 * @param query
 * @returns {*}
 */
export const getRankings = () => {
  return PHPrequest({
    url: '/doctor.php/common/home/ranking',
    method: 'get',
  });
};

/**
 * 近一年签约人数
 * @param query
 * @returns {*}
 */
export const getLastYear = () => {
  return PHPrequest({
    url: '/doctor.php/common/home/lastYear',
    method: 'get',
  });
};

